<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<head>
<title>Sistema CUCEI</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/formas.css" rel="stylesheet" type="text/css">
<logic:present name="req_msg">
	<script>
		alert("<bean:write name='req_msg' scope='session'/>");
		<%session.removeAttribute("req_msg");%>
	</script>
</logic:present>
<script type="text/javascript" src="js/util.js"></script>
</head>
<body>
<table cellpadding="0" cellspacing="0" class="formas">
  <tr> 
    <td> 
    	<table cellpadding="0" cellspacing="0" class="barraNavegacion">
				<tr>
			       	<td><html:link action="/academy_welcome?action=selectAcademy" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="AcademyWelcome.Init"/></html:link>
					       	<html:link action="/academy_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.AcademyHeader"/></html:link>
				       		<html:link action="/draft_list?action=listDrafts" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Agreement.drafts"/></html:link>
			        		<html:link action="/draft_edit?action=editDraft" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Agreement.draftEdit"/></html:link>
		              	</td>
	    			</tr>
      </table>
      <table cellpadding="0" cellspacing="0" class="titulo">
				<tr> 
					<td class="iconos_imgs"> <a href="#"><img src="images/icn_correo.gif" alt="Correo-e" width="18" height="18" border="0"></a> </td>
          <td class="txt_titulo"> <bean:message key="Document"/> </td>
				</tr>
			</table>
		</td>
  </tr>
  <tr> 
  	<td width="145" class="formas-encabezado"><bean:message key="Document.draftData"/> </td>
	</tr>
  <tr> 
  	<td >
  		<table cellpadding="0" cellspacing="2" class="info_titulo">
				<tr> 
      		<td class=""><strong> <bean:message key="Document.draft"/> </strong></td>
      		<td class=""> <bean:write name="bean_minuta" property="int_tk"/> </td>
				</tr>
      	<tr> 
      		<td class=""><strong> <bean:message key="Document.content"/> </strong></td>
        	<td class=""> <bean:write name="bean_minuta" property="str_asunto"/> </td>
        </tr>
      </table>
    </td>
	</tr>
  <tr> 
		<td>
		<div align="right">
			<logic:equal name="ses_usuario" property="per_minutas" value="2">
         		<input <logic:equal name="bean_minuta" property="str_cerrada" value="1">disabled="true"</logic:equal> type="submit" name="Submit" value="Insertar" onclick= "location.href='document_add.do'" >
         	</logic:equal>
      </div>
		</td>
  </tr>
  <tr> 
		<td>
			<table cellpadding="0" cellspacing="2" class="info_formas">
				<tr> 
					<td class="formas-encabezado"> <bean:message key="Document.number"/> </td>
          <td class="formas-encabezado"><bean:message key="Document.description"/> </td>
          <td colspan="2" class="formas-encabezado"> <bean:message key="DraftList.Actions"/> </td>
        </tr>
        <logic:iterate id="draft" name="bean_minuta" property="arrL_documento">
          <tr>
	        <td class="formas-backcolor1"><bean:write name="draft" property="int_documento" /></td>
	        <td class="formas-backcolor1"><bean:write name="draft" property="str_descripcion" /></td>
	        <td class="formas-backcolor1">
						<a href="#">
							<a href="#>" onclick="centerPopUp( 'document_show.do?document_id=<bean:write name="draft" property="int_documento" />', 'MostrarArchivo', 800, 550, 'NO');"><img src="images/icn_consultar.gif" border="0" alt="Consultar archivo" /></a>
						</a>
					</td>
					<td class="formas-backcolor1">
						<logic:equal name="ses_usuario" property="per_minutas" value="2">
							<logic:equal name="bean_minuta" property="str_cerrada" value="1">
								<img src="images/icn_eliminar.gif" border="0" alt="Eliminar archivo" />
							</logic:equal>
							<logic:equal name="bean_minuta" property="str_cerrada" value="0">
							<a href="#>" onclick="if(confirm('<bean:message key='Document.confirmDelete'/>?'))location.href = 'document_delete.do?document_id=<bean:write name="draft" property="int_documento" />'">
								<img src="images/icn_eliminar.gif" border="0" alt="Eliminar archivo" />
							</a>
							</logic:equal>
						</logic:equal>
					</td>
		  </tr>
        </logic:iterate>
        <tr> 
          <td colspan="4" class="barraPaginacion"><div align="center"></div></td>
        </tr>
    	</table>
		</td>
	</tr>
  <tr> 
  	<td>&nbsp;</td>
  </tr>
</table>  
</body>
</html:html>